﻿<%@ Page Title="Cadastro de modelo de prontuário" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="addProntuario.aspx.cs" Inherits="WebSite.Prontuario.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Cadastro de Prontuário
    </h2>
    <hr />
    <br />
    <p>
        Nome do Prontuário:
        <asp:TextBox ID="txtNomeProntuario" runat="server"></asp:TextBox>
         
    </p>
    <p>
        Descrição:
        <asp:TextBox ID="txtDescricao" runat="server" Height="60px" Width="350px"></asp:TextBox>
    </p>
    <br />
    <p >
        <table style="width:100%;">
            <tr>
                <td class="style1">
                    Itens Disponíveis</td>
                <td class="style2">
                    Itens do Prontuário</td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:ListBox ID="lbItemsAdicionados" runat="server" AutoPostBack="True" Height="130px" 
                        onselectedindexchanged="lbItemsAdicionados_SelectedIndexChanged" Width="300px">
                    </asp:ListBox>
                </td>
                <td class="style2">
                    <asp:ListBox ID="lbItemsProntuario" runat="server" Height="130px" Width="300px">
                    </asp:ListBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    <asp:LinkButton ID="CadastrarItemProntuario" runat="server" 
                        PostBackUrl="addItemProntuario.aspx">Cadastrar Novo Item de Prontuário </asp:LinkButton>
                </td>
            </tr>
        </table>
    </p>
    <p >
        <asp:Button ID="btCadastrar" runat="server" Text="Cadastrar" 
            onclick="btCadastrar_Click" />
    </p>
    <asp:SqlDataSource ID="addProntuarioDataSource" runat="server"></asp:SqlDataSource>
</asp:Content>
